#include <cstdio>

typedef unsigned int uint;


int main ()
{
	uint a, b;

	while (scanf ("%u %u", &a, &b) == 2)
		printf ("%u\n", a ^ b);

	return 0;
}